#ifndef PrimitivesSystemH
 #define PrimitivesSystemH


/****************************************************************************************************/
/*                             C L K    S O U R C E   T Y P E    C O N S T                          */
/****************************************************************************************************/
  #define IRCsrc    0   //internal RC oscillator
  #define OSCsrc    1   //main oscillator
  #define RTCsrc    2   //RTC oscillator
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/


/****************************************************************************************************/
/*                                  F R E Q U E N C E     C O N S T                                 */
/****************************************************************************************************/
  #define IRCfreq         4000000      //Hz, IRC frequince, don't change
  #define RTCfreq           32768      //Hz, RTC frequince, don't change
  #define USBfreq        48000000      //Hz, USB frequince, don't change
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/



/****************************************************************************************************/
/*                                S C S    B I T'S    D E F I N E                                   */
/****************************************************************************************************/
 #define fastP0_P1     ( 1<<0 )   //Fast GPIO of port 0 & 1
 #define slowP0_P1     ( 0<<0 )   //Slow GPIO of port 0 & 1 
 #define EMCrstOn      ( 0<<1 )   //EMC reset after any reset condition
 #define EMCrstOff     ( 1<<1 )   //EMC don't reset after warm reset
 #define MCIPlow       ( 0<<3 )   //MCIPWR pin is low active state
 #define MCIPhigh      ( 1<<3 )   //MCIPWR pin is high active state
 #define OSC_1_20mhz   ( 0<<4 )   //main OCS range is 1MHz to 20MHz
 #define OSC_15_24mhz  ( 1<<4 )   //main OCS range is 15MHz to 24MHz
 #define OCSdis        ( 0<<5 )   //main OSC disable
 #define OCSen         ( 1<<5 )   //main OSC enable
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/








/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
#endif
